package com.zhaolixiang.view.draw2

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.LinearLayout
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val myView=MyView(this)
        val params=LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,700)
        myView.layoutParams=params
        ll_zong.addView(myView)

        val paintView=PaintView(this)
        val params2=LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,700)
        paintView.layoutParams=params
        ll_zong.addView(paintView)
    }
}
